<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Trademark_printing')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input readonly class="form-control" value="{$row.trademark_printing|htmlentities}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Abbreviation')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input readonly class="form-control" value="{$row.abbreviation|htmlentities}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Colour_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input readonly class="form-control" value="{$row.colour_name|htmlentities}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Finished_weight')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input readonly class="form-control" value="{$row.finished_weight|htmlentities}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Feeding_weight')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input readonly class="form-control" value="{$row.feeding_weight|htmlentities}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Attribute')}:</label>
        <div class="col-xs-12 col-sm-8">
            {foreach name="attributeList" item="vo"}
            {in name="key" value="$row.attribute"}
            <input readonly class="form-control" value="{$vo}"/>
            {/in}
            {/foreach}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input readonly class="form-control" value="{$row.name|htmlentities}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('长档比率')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input readonly class="form-control" value="{$row.long_ratio}"/>
        </div>
    </div>
    <div class="form-group row">
        <label class="control-label col-xs-12 col-sm-2">{:__('长档详情')}:</label>
        <div class="col-xs-12 col-sm-8">
            <dl class="fieldlist" data-template="basictpl" data-name="row[longlist]" id="j-longlist">
                <dd>
                    <ins>{:__('原料名')}</ins>
                    <ins>{:__('原料色号')}</ins>
                    <ins>{:__('比例')}</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append hidden"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <!--请注意 dd和textarea间不能存在其它任何元素，实际开发中textarea应该添加个hidden进行隐藏-->
                <textarea name="row[longlist]" class="form-control hidden" cols="30" rows="5">{$row.longlist}</textarea>
            </dl>
            <script id="basictpl" type="text/html">
                <dd class="form-inline">
                    <ins><input readonly data-source="statistics/materialplan/getMaterialName" class="form-control" value="<%=row.material%>"/></ins>
                    <ins><input readonly data-source="statistics/materialplan/getMaterialColourName" class="form-control" value="<%=row.material_colour%>"/></ins>
                    <ins><input readonly class="form-control" value="<%=row.ratio%>"/></ins>
                </dd>
            </script>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('短档比率')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input readonly class="form-control" value="{$row.short_ratio}"/>
        </div>
    </div>
    <div class="form-group row">
        <label class="control-label col-xs-12 col-sm-2">{:__('短档详情')}:</label>
        <div class="col-xs-12 col-sm-8">
            <dl class="fieldlist" data-template="basictpl" data-name="row[shortlist]" id="j-shortlist">
                <dd>
                    <ins>{:__('原料名')}</ins>
                    <ins>{:__('原料色号')}</ins>
                    <ins>{:__('比例')}</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append hidden"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <!--请注意 dd和textarea间不能存在其它任何元素，实际开发中textarea应该添加个hidden进行隐藏-->
                <textarea name="row[shortlist]" class="form-control hidden" cols="30" rows="5">{$row.shortlist}</textarea>
            </dl>
            <script id="shortlisttpl" type="text/html">
                <dd class="form-inline">
                    <ins><input readonly data-source="statistics/materialplan/getMaterialName" class="form-control" value="<%=row.material%>"/></ins>
                    <ins><input readonly data-source="statistics/materialplan/getMaterialColourName" class="form-control" value="<%=row.material_colour%>"/></ins>
                    <ins><input readonly class="form-control" value="<%=row.ratio%>"/></ins>
                </dd>
            </script>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">审核结果:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label><input  name="row[status]" type="radio" value="1" checked/>通过</label>
                <label><input  name="row[status]" type="radio" value="2"/>驳回</label>
            </div>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed">提交</button>
        </div>
    </div>
</form>
